﻿using System;
using Soundteller.Audio.Model;
using Soundteller.Audio.Repositories.Interfaces;
using Soundteller.Audio.Services.Interfaces;

namespace Soundteller.Audio.Services
{
    internal class PadSoundInitializer : IPadSoundInitializer
    {
        private readonly ISoundRepository _soundRepository;

        public PadSoundInitializer(ISoundRepository soundRepository)
        {
            if (soundRepository == null) throw new ArgumentNullException("soundRepository");

            _soundRepository = soundRepository;
        }

        public void Initialize()
        {
            // load pads from store here
            _soundRepository.Add(new Sound { Name = "test-pad" });
        }
    }
}
